package com.example.housingRentalSystem.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author 王硕
 */
@Data
@ApiModel("收藏实体")
public class Collect {
    @ApiModelProperty("收藏ID")
    private Integer id;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("房屋ID")
    private Integer houseId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("收藏时间")
    private Date createTime;
}
